package com.liu.mybatisPlus.poke.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuChengLong
 * @since 2025-04-01
 */
@Getter
@Setter
@TableName("tb_poke_duel")
public class PokeDuel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("group1_id")
    private Long group1Id;

    @TableField("user1_id")
    private Long user1Id;

    @TableField("user1_poke_id")
    private Integer user1PokeId;

    @TableField("group2_id")
    private Long group2Id;

    @TableField("user2_id")
    private Long user2Id;

    @TableField("user2_poke_id")
    private Integer user2PokeId;

    @TableField("next_use_user_id")
    private Long nextUseUserId;

    @TableField("winner_user_id")
    private Long winnerUserId;

    /**
     * 0：未开始 1：进行中 2：已结束
     */
    @TableField("status")
    private Integer status;

    @TableField("user1_poke_remaining_hp")
    private Integer user1PokeRemainingHp;

    @TableField("user2_poke_remaining_hp")
    private Integer user2PokeRemainingHp;
}
